package com.ctgu.蓝桥杯真题.B组2014;

import java.util.Scanner;

/**
 * @author: Backdiy
 * @data: 2021/4/15 20:17
 * @desc:
 */
public class 切面条 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ans = (int) (Math.pow(2,n)+1);
        System.out.println(ans);
    }
}
